<template>
  <uni-popup ref="popup">
    <view class="pop-content">
      <view class="con-box">
        <scroll-view class="con" scroll-y="true" show-scrollbar="true">
          <view class="hot"
            >您还未进行营业执照认证，为保障您的合法权益，请尽快完成身份认证。</view
          >
        </scroll-view>
      </view>
      <view class="btn-group row">
        <view class="btn center" @click="confirm"> </view>
      </view>
      <view class="btn-close" @click="close">
        <image
          class="close-img"
          src="/static/guanbi2-slices.png"
          mode="aspectFit"
        ></image>
      </view>
    </view>
  </uni-popup>
</template>

<script>
/**
 * 自定义 确认对话框
 * @prop title 标题
 * @prop text 提示内容
 * @prop confirmText 确认按钮文字
 * @event onConfirm 确认按钮点击时触发
 */
export default {
  data() {
    return {};
  },
  methods: {
    confirm() {
      this.$emit("onConfirm");
      this.close();
    },
    open() {
      this.$refs.popup.open();
    },
    close() {
      this.$refs.popup.close();
    },
  },
};
</script>

<style scoped lang="scss">
.pop-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 560rpx;
  height: 593rpx;
  padding-top: 500rpx;
  background-image: url("../../static/check-car-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 24rpx;
  // overflow: hidden;
  .logout-img {
    position: relative;
    top: -100rpx;
    width: 200rpx;
    height: 200rpx;
  }
  .con-box {
    margin: 40rpx;
    margin-left: 50rpx;
  }
  .con {
    height: 400rpx;
  }
  .hot {
    width: 420rpx;
    font-size: 36rpx;
    color: #171f65;
    line-height: 44rpx;
    // border: 1px solid red;
  }
  .btn-group {
    width: 100%;
    padding-bottom: 20rpx;
  }
  .btn {
    position: relative;
    top: -230rpx;
    flex: 1;
    height: 88rpx;
    line-height: 88rpx;
    font-size: 36rpx;
    color: transparent;
    margin: 0 30rpx 20rpx;
    border-radius: 45px;
  }
  .btn-close {
    position: relative;
    top: -100rpx;
    .close-img {
      position: absolute;
      top: -50rpx;
      left: 50%;
      margin-left: -40rpx;
      width: 80rpx;
      height: 80rpx;
    }
  }
}
</style>
